Conditional compilation based on whether a macro is defined.
#ifdef DEBUG std::cout << "Debug mode\n"; #endif #ifndef RELEASE std::cout << "Not in release mode\n"; #endif